import { CreateOpsWebApp } from '@/utils/fetch';

const request = CreateOpsWebApp();

export const getMergeBranchApi = async (params) => {
  return request.post('/online/getMergeBranch', params);
};

export const getListApi = async (params) => {
  return request.post('/online/getList', params);
};

export const outMergeBranchApi = async (params) => {
  return request.post('/online/outMergeBranch', params);
};

export const updateOnlineRecordApi = async (params) => {
  return request.post('/online/updateOnlineRecord', params);
};

export const createMergeRequestApi = async (params) => {
  return request.post('/online/createMergeRequest', params);
};

export const createMergeBranchApi = async (params) => {
  return request.post('/online/createMergeBranch', params);
};

export const toMergeBranchApi = async (params) => {
  return request.post('/online/toMergeBranch', params);
};

export default {};
